package com.ssh.dao;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.ssh.model.RoleInfo;
import com.ssh.model.Users;

public class RoleInfoDAO extends HibernateDaoSupport implements IRoleInfoDAO{

	@Override
	public void saveRoleInfo(RoleInfo roleInfo) {
		try {
			getHibernateTemplate().save(roleInfo);
			
		} catch (RuntimeException re) {
			
			throw re;
		}
		
	}

	@Override
	public RoleInfo findRoleInfoById(long id) {
		try {
			RoleInfo instance = (RoleInfo) getHibernateTemplate().get(
					"com.ssh.model.RoleInfo", id);
			return instance;
		} catch (RuntimeException re) {
			
			throw re;
		}
	}
  
}
